package com.baby.security.controller;


import com.baby.security.dao.RoleMapper;
import com.baby.security.model.Role;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2022-06-17
 */
@Controller
@RequestMapping("/role")
public class RoleController {

    @Resource
    private RoleMapper mapper;

    public String getkey(){
        Role role=mapper.selectKey(1);
        return "测试"+role;
    }

}

